//
//  BaseCategoryViewController.h
//  XV
//
//  Created by apple on 18/05/2019.
//  Copyright © 2019 XR. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JXCategoryView.h"
#import "JXCategoryListContainerView.h"


NS_ASSUME_NONNULL_BEGIN


/**
 分类显示基类
 */
@interface BaseCategoryViewController : UIViewController

@property (nonatomic, strong) NSArray *titles;

@property (nonatomic, strong) JXCategoryBaseView *categoryView;

@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;

@property (nonatomic, assign) BOOL isNeedIndicatorPositionChangeItem;

@property (nonatomic, assign) BOOL shouldHandleScreenEdgeGesture;

- (JXCategoryBaseView *)preferredCategoryView;

- (CGFloat)preferredCategoryViewHeight;

- (id<JXCategoryListContentViewDelegate>)preferredListAtIndex:(NSInteger)index;


//默认展示列表的index
- (void)defaultshowAtIndex:(NSInteger)index;
//展示列表的index
- (void)showAtIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
